<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
	//2、反转数组
	var arr=[88,3,4,5,7,1,56,32,89,100,34];
	var num=0;
	document.write("<h2>反转前的数组"+arr+"<br/></h2>");
	for(i=0;i<arr.length/2;i++){
       num=arr[i];
       arr[i]=arr[arr.length-1-i];
       arr[arr.length-1-i]=num;
	}
	document.write("<h2>反转后的数组"+arr+"</h2>");
	</script>
</body>
</html>